package cn.edu.scau.cmi.zhouxinyue.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */
public class Student implements java.io.Serializable {


	// Fields

	private Long id;
	private Teacher teacher=null;
	private String name;
	private String gendar;

	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Student(Long id, String name) {
		this.id = id;
		this.name = name;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}


	public void setName(String name) {
		this.name = name;
	}
    
	public String getName() {
		return name;
	}
	public String getGendar() {
		return gendar;
	}

	public void setGendar(String gendar) {
		this.gendar = gendar;
	}


}
